import 'package:car_map/page/res/gaps.dart';
import 'package:car_map/widget/widget_temperature.dart';
import 'package:car_map/widget/widget_temperature_expansion.dart';
import 'package:flutter/material.dart';

///温度统计
class TemperaturePage extends StatefulWidget{
  @override
  _temperatureState createState() =>_temperatureState();

}

class _temperatureState extends State<TemperaturePage>{

  TextEditingController fastController;
  TextEditingController lastController;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    fastController=TextEditingController();
    lastController=TextEditingController();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text(
          '温度统计'
        ),
      ),
      body: ListView(
        children: <Widget>[
          Gaps.vGap5,
          WidgetTemperature(fastController: fastController,lastController: lastController,),
          Gaps.vGap15,
          WidgetTemperatureExpansion()
        ],
      ),
    );
  }

}